<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>密码找回</title>
</head>
<script type="text/javascript">
function check(forms) {
	var name=forms.elements[0].value;
	var email=forms.elements[1].value;
	if(name=""||email==''){
		document.getElementById("msg").innerHTML = "用户名不能为空";
		return false;
	}else if (email.match("\\w+@\\w+\\.\\w+\\.?\\w+") == null) {
		document.getElementById("msg").innerHTML = "邮箱格式不正确";
		return false;
	}else
		return true;
}
</script>
<body style="background-color:yellow;text-align:center">
	<h1>密码找回</h1>
	<form action="recall.do" method="get" onsubmit="return check(this)">
		&emsp;用户名:<input type="text" name="name" /><br/>
		绑定邮箱:<input type="text" name="email"/><br/>
		<span id="msg"></span><br/>
		<input type="submit" name="submit" />

	</form>
	
	<p></p>
<a  href="login.htm">返回登录</a>
</body>
</html>